function showSection(sectionId) {
    document.querySelectorAll('.content-section').forEach(section => {
        section.style.display = 'none';
    });
    document.getElementById(sectionId).style.display = 'block';
}

function selectDate(element, date) {
    document.querySelectorAll('.calendar-day').forEach(day => {
        day.classList.remove('selected');
    });
    element.classList.add('selected');
    updateDoctorList(date);
}

function selectDepartment(department) {
    updateDoctorList();
}

function updateDoctorList(date) {
    // 这里可以根据选择的日期和科室来筛选显示对应的医生
    // 实际项目中应该通过API获取数据
}

// 默认显示预约挂号页面
showSection('appointment');